<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\admin\model\Banner as BannerModel;
/**
 * 首页接口
 */
class Index extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

//    //首页
//    public function index()
//    {
//        //轮播
//        $model = new BannerModel();
//        $banner = $model
//            ->field('id,image,banner')
//            ->select();
//        $banner = addWebSiteUrl($banner, ['image']);
//        $banner = addWebSiteUrl($banner, ['banner']);
//
//        return sucessMsg(200, '获取成功！', ['banner' => $banner]);
//    }
}


